'use strict';

import React from "react";
import ChjNavigator from "./ChjNavigator";
import SplashScreen from "rn-splash-screen";
import Init from "../common/init/init";
import {Provider} from "react-redux";
import store from "./redux/store/configStore.js";

Init();

export default class ChjApp extends React.Component {
    constructor(props, context) {
        super(props, context);
    }

    // 组件被加载时
    componentDidMount() {
        SplashScreen.hide();
    }

    // 组件即将被卸载时
    componentWillUnmount() {

    }

    render() {
        return (
            <Provider store={store}>
                <ChjNavigator/>
            </Provider>
        );
    }
}
